package com.todolist.client.service;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.todolist.shared.domain.Project;

import java.util.ArrayList;

@RemoteServiceRelativePath("springGwtServices/projectService")
public interface ProjectService extends RemoteService {

    Project getProject(String name);

    void addProject(String name);

    void updateProjectName(String oldName, String newName);

    void deleteProject(String name);

    ArrayList<Project> getProjects();
}
